home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Where is FW_CFacetContext.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Where is FW_CFacetContext?
  2. Sent:        6/10/96 9:01 AM
  3. Received:    6/10/96 9:14 AM
  4. From:        Laurent Delamare, laurentd@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Now I'm upgrading my Part from DR4 to DR5.
  9. >
  10. >I used FW_CFacetContext class in DR4.
  11. >But In DR5 there is not it.
  12. >
  13. >In the FWFrame.h, FW_CFacetContext class is declared.
  14. >But I can not find its content.
  15. >
  16. >
  17. >Where is FW_CFacetContext class?
  18.  
  19. FW_CFacetContext was removed in ODF 1 because you should use 
  20. FW_CViewContext instead everytime you draw inside a view, whether it's 
  21. the frame itself or a subview:
  22.  
  23. void MyFrame::Draw(Environment *ev, ODFacet* facet, ODShape* invalidShape)
  24. {
  25.     FW_CViewContext vc(ev, this, odFacet, invalidShape);
  26.    
  27.    // now you can draw using the vc view context
  28.    ...
  29. }
  30.  
  31. See how it is used in the various ODF samples.
  32.  
  33. Leaving FW_CFacetContext inside FWFrame.h was an omission, we'll fix it.
  34.  
  35.  
  36. ______________________________________________________________________
  37. Laurent Delamare               laurentd@apple.com
  38. ODF Team                       http://www.devtools.apple.com/odf/
  39. Apple Computer, Inc.           http://www.opendoc.apple.com/
  40.